package interfacetest

import "fmt"

type DogSamoye struct {
	Name  string `json:"name"`
	Color string `json:"color"`
}

func (d *DogSamoye) Say() string {
	message := fmt.Sprintf("我是%s，我汪汪汪", d.Name)
	fmt.Println(message)
	return message
}

func (d *DogSamoye) Move() int {

	d.Jump()

	a := 100
	fmt.Printf("我移动了%d米\n", a)
	return a
}

func (d *DogSamoye) Jump() int {
	a := 10
	fmt.Printf("我是%s色的%s，我跳了%d米\n", d.Color, d.Name, a)
	return a
}
